package cn.learn.controller;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年12月22日1:25
 */
@Component
@EnableBinding(Sink.class)
public class ReceiveMessageListenerController {

    public void input(Message<String> message) {
        String payload = message.getPayload();
        System.out.println(payload);
    }
}
